package br.project.cdd.vo;

import java.util.ArrayList;
import br.project.cdd.bean.CddBean;
import br.project.cdd.dao.CddDAO;

public class CddVO {
	
	public void inserirCdds(CddBean cdd){
		
		CddDAO dao = new CddDAO();
		dao.inserirCdd(cdd);		
	}	
	
	public ArrayList<CddBean> getTodosCdds(){
		ArrayList<CddBean> listCdds = null;
		
		CddDAO dao = new CddDAO();
		listCdds = dao.selecionarTodosCdds();
		
		return listCdds;
	}
	
	public int buscarIdCdd(String numCdd){
		CddDAO dao = new CddDAO();
		return dao.buscarIdCdd(numCdd);
	}

}
